package com.tkx.dxb.service.article.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tkx.dxb.service.article.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tkx.dxb.service.article.entity.vo.PostQueryVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author victor
 * @since 2021-04-07
 */
public interface PostService extends IService<Post> {

    List<Map<String, Object>> selectNameListByKey(String key);

    IPage<Post> selectPage(Page<Post> pageParam, PostQueryVo postQueryVo);

    IPage<Post> selectWebPage(Page<Post> pageParam);

    List<Post> selectHotArticle();

    Post selectById(String id);

    boolean removeAvatarById(String id);

    boolean removeAvatarByIds(List<String> idList);
}
